package com.controller;

import com.exption.GirlException;
import com.pancm.exception.BizException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/girl")
@RestController
public class GirlController {
    @GetMapping("/add")
    public String add(){
        return "抓仙女";
    }
    @GetMapping("fly")
    public String fly(int num){
        if(num == 7){
            throw new GirlException("7号仙女飞天了");
        }
        return "飞上天";

    }
    @GetMapping("/ri")
    public String ri(int num){
        int  i = num/0;
        return "日不成哇";
    }
    @GetMapping("/null")
    public String nulls()
    {
        String s = null;
       s.equals("123");
        return s;
    }
}
